<template>
    <div class="bottoms" :style="bottom">
        <div class="goback" @click="back">111</div>
        <img :src="pic" alt="">
    </div>
</template>

<script>
    export default {
        data () {
            return {
                datas:this.bottom,
                pic:''
            }
        },
        props:{
          bottom:Object
        },
        created(){

        },
        watch:{
            'datas.item.coverImgUrl': function (){
                console.log(1);
                this.get()
            },
            deep: true
        },
        methods:{
            back:function(){
                this.$emit('back')
            },
            get(){
                    console.log(this.datas);
                    this.pic=this.datas.item.coverImgUrl
                    console.log(this.pic);

            }
        }
    }
</script>

<style>
    .bottoms{
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #0074D9;
    }
    .goback{
        width: 100px;
        height: 50px;
        background-color: black;
        color: white;
        position: absolute;
        top: 0;
        left: 0;
        text-align: center;
        line-height: 50px;
    }
    .bottoms img{
        width: 100%;
        height: 100%;
        display: inline-block;
    }
</style>
